import request from "../utils/request";
export interface ILogin {
  username: string;
  password: string;
}
export interface IAdmin {
  current: Number;
  size: Number;
  username: String;
}

export class API {
  static login = (params: ILogin) => request.get("admin/login", { params });
  static admin = (data: IAdmin) => request.post("admin/list", data);
  static adminPassword = (data: IAdmin) => request.post("admin/list", data);
}
